﻿using iMES.Entity.SystemModels;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace iMES.Entity.DomainModels
{
    [Entity(TableCnName = "检测模版", TableName = "Mass_DetectionTemplate", DBServer = "SysDbContext")]
    public partial class Mass_DetectionTemplate : SysEntity
    {
        /// <summary>
        /// 模版主键
        /// </summary>
        [Key]
        [Display(Name = "模版主键")]
        [Column(TypeName = "int")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public int Mass_DetectionTemplate_ID { get; set; }

        /// <summary>
        /// 检测模版名称
        /// </summary>
        [Display(Name = "检测模版名称")]
        [MaxLength(100)]
        [Column(TypeName = "nvarchar(100)")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public string Mass_DetectionTemplate_Name { get; set; }

        /// <summary>
        /// 检测模版编码
        /// </summary>
        [Display(Name = "检测模版编码")]
        [MaxLength(100)]
        [Column(TypeName = "varchar(100)")]
        [Editable(true)]
        public string Mass_DetectionTemplate_Code { get; set; }

        /// <summary>
        /// 检测种类
        /// </summary>
        [Display(Name = "检测种类")]
        [MaxLength(200)]
        [Column(TypeName = "varchar(200)")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public string Mass_DetectionTemplate_Type { get; set; }

        /// <summary>
        /// 是否启用
        /// </summary>
        [Display(Name = "是否启用")]
        [Column(TypeName = "int")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public int Mass_DetectionTemplate_IsNo { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [Display(Name = "备注")]
        [MaxLength(1000)]
        [Column(TypeName = "nvarchar(1000)")]
        [Editable(true)]
        public string Mass_DetectionTemplate_Remark { get; set; }

        /// <summary>
        /// 创建人编号
        /// </summary>
        [Display(Name = "创建人编号")]
        [Column(TypeName = "int")]
        [Editable(true)]
        public int? CreateID { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        [Display(Name = "创建人")]
        [MaxLength(30)]
        [Column(TypeName = "nvarchar(30)")]
        [Editable(true)]
        public string Creator { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [Display(Name = "创建时间")]
        [Column(TypeName = "datetime")]
        [Editable(true)]
        public DateTime? CreateDate { get; set; }

        /// <summary>
        /// 修改人编号
        /// </summary>
        [Display(Name = "修改人编号")]
        [Column(TypeName = "int")]
        [Editable(true)]
        public int? ModifyID { get; set; }

        /// <summary>
        /// 修改人
        /// </summary>
        [Display(Name = "修改人")]
        [MaxLength(30)]
        [Column(TypeName = "nvarchar(30)")]
        [Editable(true)]
        public string Modifier { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        [Display(Name = "修改时间")]
        [Column(TypeName = "datetime")]
        [Editable(true)]
        public DateTime? ModifyDate { get; set; }

        /// <summary>
        /// 下次截至时间
        /// </summary>
        [Display(Name = "下次截至时间")]
        [Column(TypeName = "datetime")]
        [Editable(true)]
        public DateTime? NextCheckDate { get; set; }
    }
}
